<?php include $this->tpl('public:common.php') ?>
<div class="well">
    <ul class="nav nav-tabs">
      <li class="active"><a href="#home" data-toggle="tab"><?=get('id') ? '编辑' : '添加'?><?=isset($parent_type_name) ? $parent_type_name : '地区'?></a></li>
    </ul>	
	
	<div id="myTabContent" class="tab-content">
		  <div class="tab-pane active in" id="home">
           <form id="tab" method="post" action="">
				<label>名称</label>
				<input type="text" name="name" value="<?=post('name')?>" class="input-xlarge" required="true" autofocus="true">
				<label>编码</label>
				<input type="text" name="sn" value="<?=post('sn')?>" class="input-xlarge" required="true" pattern="\d{6}">
				<?php if(isset($parent_options) && !empty($parent_options)):?>
				<label>上级</label>
				<?=$parent_options?>
				<?php endif?>
				<div class="btn-toolbar">
					<button type="submit" class="btn btn-primary"><strong>提交</strong></button>
				</div>
			</form>
        </div>
    </div>
</div>
<?=\Lib\Common::renderJsRegion($level)?>
<?php include $this->tpl('public:footer.php') ?>